﻿using System;

namespace CategoryExample
{
    public readonly struct Marvel
    {
        private readonly string _name;

        public string Name
        {
            get
            {
                return _name;
            }
        }

        public void PrintName()
        {
            Console.WriteLine(this._name);
            // this._name = "jack"; // Error
        }

        // constructer
        public Marvel(string name)
        {
            this._name = name;
        }
    }
}